/* quizController */
// it might be that the application controller is called from the 
// quiz button which in turn instantiates a quizzing object and corresponding window

// Create a copy of the objects that are in the currently selected WordArrayController
// these are the words we're going to quiz on
// Then the quizController holds onto this array, and iterates through it
// If the user closes the window, then the quiz objects are released and thde quiz is over!
// The objects are updated on the fly.
#import <Cocoa/Cocoa.h>
#import "WordArrayController.h"
#import "GroupsArrayController.h"
@interface QuizController : NSArrayController
{
    IBOutlet WordArrayController *wordArrayController;
	IBOutlet GroupsArrayController *groupArrayController;
    IBOutlet NSTextField *foreignString;
    IBOutlet NSTextField *howManyToGo;
    IBOutlet NSTextField *localString;
    IBOutlet NSTextField *quizTitle;
    IBOutlet NSTextField *theWord;
	IBOutlet NSTextField *quizProgressString;
	IBOutlet NSWindow *mainWindow; //to change the title
	IBOutlet NSTabView *mainWindowTabView; //global tab view to switch between main words app and quizzing
	
	IBOutlet NSButton *revealMainDefButton;
	IBOutlet NSButton *revealSecondaryDefButton;
	
	IBOutlet NSTabView *gamesTabView;
	
	
	
}
- (IBAction)startNewQuiz:(id)sender;
- (IBAction)killQuiz:(id)sender;

- (IBAction)almost:(id)sender;
- (IBAction)revealForeignMeaning:(id)sender;
- (IBAction)revealLocalMeaning:(id)sender;
- (IBAction)right:(id)sender;
- (IBAction)skipWord:(id)sender;
- (IBAction)wrong:(id)sender;

- (NSString *)progressString;

-(void)updateProgressString;



@end
